package day10Stringdemo;

public class Demo4 {
    public static void main(String[] args) {
        String phoneNumber = "19973658253";
        //字符串截取  包头不包尾  包左不包右
        String start = phoneNumber.substring(0, 3);
        //截取到末尾
        String end = phoneNumber.substring(7);

        String result = start + "****" + end;
        System.out.println(result);
    }
}
